package returnDataStruct;

import pojo.room;

public class orderData {
    private Long room_id;
    private String room_location;//stadium
    private String room_playground;
    private roomDate room_date;
    private int room_all_person;
    private int room_state;

    public orderData(room r){
        setRoom_id(r.getRoom_id());
        setRoom_location(r.getStadium());
        setRoom_playground(r.getPlayground());
        setRoom_date(new roomDate(r));
        setRoom_all_person(r.getCurrent_number());
        setRoom_state(r.getRoomstate());
    }

    public Long getRoom_id() {
        return room_id;
    }

    public void setRoom_id(Long room_id) {
        this.room_id = room_id;
    }

    public String getRoom_location() {
        return room_location;
    }

    public void setRoom_location(String room_location) {
        this.room_location = room_location;
    }

    public String getRoom_playground() {
        return room_playground;
    }

    public void setRoom_playground(String room_playground) {
        this.room_playground = room_playground;
    }

    public roomDate getRoom_date() {
        return room_date;
    }

    public void setRoom_date(roomDate room_date) {
        this.room_date = room_date;
    }

    public int getRoom_all_person() {
        return room_all_person;
    }

    public void setRoom_all_person(int room_all_person) {
        this.room_all_person = room_all_person;
    }

    public int getRoom_state() {
        return room_state;
    }

    public void setRoom_state(int room_state) {
        this.room_state = room_state;
    }

    @Override
    public String toString() {
        return "orderData{" +
                "room_id=" + room_id +
                ", room_location='" + room_location + '\'' +
                ", room_playground='" + room_playground + '\'' +
                ", room_date=" + room_date +
                ", room_all_person=" + room_all_person +
                ", room_state=" + room_state +
                '}';
    }
}
